Ext.define('DeftQuickStart.view.UserGridPanel',{
	extend: 'Ext.grid.Panel',
	alias: 'widget.deftQuickStart-view-userGridPanel',
	controller: 'DeftQuickStart.controller.MainController',
	inject: ['userStore'],
	initComponent: function(){
		Ext.applyIf(this, {
			itemId: 'userGridPanel',
			title: 'User Listing',
			store: this.userStore,
			columnLines: true,
			columns: [
				{
					xtype: 'numbercolumn',
					dataIndex: 'id',
					text: 'ID',
					flex: 1
				},{
					xtype: 'gridcolumn',
					dateIndex: 'name',
					text: 'Text'
				},{
					xtype: 'gridcolumn',
					dataIndex: 'email',
					text: 'Email'
				}
			],
			tbar:[
				{
					xtype: 'checkbox',
					itemId: 'idFilter',
					boxLabel: 'Show only User have id > 2'
				}
			]
		});
		
		return this.callParent(arguments);
	)
});